package com.example.pcl.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "公告查询条件",name = "AnnouncementQueryDTO")
public class AnnouncementQueryDTO extends CommonPage {

    @Schema(description = "公告标题关键字", example = "系统")
    private String title;

    @Schema(description = "是否展示公告标志")
    private Integer displayFlag;

    @Schema(description = "创建时间起始", example = "2024-01-01T00:00:00")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @Schema(description = "创建时间结束", example = "2024-12-31T23:59:59")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
}

